package com.honyelchak.shortlink.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.honyelchak.shortlink.admin.dao.entity.GroupDO;
import com.honyelchak.shortlink.admin.dto.req.GroupDeleteReqDTO;
import com.honyelchak.shortlink.admin.dto.req.GroupSortReqDTO;
import com.honyelchak.shortlink.admin.dto.req.GroupUpdateReqDTO;
import com.honyelchak.shortlink.admin.dto.resp.GroupRespDTO;

import java.util.List;

/**
 * 短链接分组Service层
 */
public interface GroupService extends IService<GroupDO> {

    void saveGroup(String groupName);

    void saveGroup(String username, String groupName);

    List<GroupRespDTO> listGroup();

    void delete(GroupDeleteReqDTO reqDTO);

    void update(GroupUpdateReqDTO reqDTO);

    void sort(List<GroupSortReqDTO> reqDTO);
}
